package gwt.trading.client;

import gwt.trading.client.util.ColorEnum;

/**
 * @author Iulian Costan (iulian.costan@gmail.com)
 * 
 */
public abstract class PriceChart extends TradingObject implements VerticalConstrainter {

	public String getId() {
		return ID;
	}

	public PriceChart(StockQuoteList quotes, ColorEnum color) {
		super(quotes, color);
	}

	public HorizontalAxis getHorizontalAxis() {
		return new HorizontalAxis(getNumberOfBars(), 30);
	}

	public VerticalAxis getVerticalAxis() {
		return new VerticalAxis(getQuoteList().getLowest(), getQuoteList().getHighest());
	}

	private static final String ID = "price";
}
